package com.headwind.logistics.report.service.inter;

import com.headwind.logistics.report.dto.CityOwnerdto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Administrator
 * @Date 2020/7/24 0024 17:20
 * @Version 1.0
 * @DESCRIPTION 货主信息业务逻辑层接口
 */
public interface CityServiceInter {
    /**
     * 查询所有货主信息和分页
     * @param page
     * @param rows
     * @return
     */
    public List<CityOwnerdto> queryAllCityOwnerdto(@Param("page")Integer page, @Param("rows")Integer rows);

    /**
     * 查询所有
     * @return
     */
    int cityOwnerdtoss();

    /**
     * 根据ID删除
     * @param id
     * @return
     */
    int deleteOwner(int id);

    /**
     * 新增货主信息
     * @param cityOwnerdto
     * @return
     */
    int addOwner(CityOwnerdto cityOwnerdto);

    /**
     * 修改货主信息
     * @param cityOwnerdto
     * @return
     */
    int updateOwner(CityOwnerdto cityOwnerdto);
}
